{{define "widget/radio"}}
{{ range $key,$val := .FromData}}{{$v := $.Value|String}}
<input type="radio"
       class="{{if $.Disabled}}layui-disabled{{end}} {{$.CssClass}}"
       style="{{.CssStyle}}"
       id="{{$.Name}}_{{$key}}"
       name="{{$.Name}}"
       title="{{$val.__mc_value}}"
       value="{{$key}}" {{if eq $v $key}}checked{{end}}{{if $.Disabled}} disabled {{end}}
/>
{{end}}
{{end}}